﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class HomeComputer : Computer
{
    public HomeComputer()
    {        
        ComputerPartAbstractFactory cpu_factory = new ComputerPartFactoryCPUPart();
        ComputerPartAbstractFactory ram_factory = new ComputerPartFactoryRAMPart();
        ComputerPartAbstractFactory monitor_factory = new ComputerPartFactoryMonitorPart();

        cpu = ((ComputerPartFactoryCPUPart)cpu_factory).getComputerPart();
        ram = ((ComputerPartFactoryRAMPart)ram_factory).getComputerPart();
        monitor = ((ComputerPartFactoryMonitorPart)monitor_factory).getComputerPart();
    }

    public override void printComputerDetails()
    {
        Console.Write("HomeComputer: ");
        base.printComputerDetails();
    }
}